package com.briup.ch07;

/**
 * @Author briup-adam
 * @Date 2023/10/10 上午9:14
 * @Description
 **/

public  class SubClass extends  SuperClass implements IAction,IAction1 {
    @Override
//    IAction
    public void methodB() {
        System.out.println("待到秋来九月八 我花开尽百花杀");
    }

    @Override
//    IAction
    public void methodC() {
        System.out.println("孤舟蓑笠翁 独钓寒江雪");
    }

    @Override
    //IAction1
    public void method1A() {
        System.out.println("浔阳江头夜送客 枫叶荻花秋瑟瑟");
    }

}
class SubClassTest  {
    public static void main(String[] args) {
        SubClass subClass = new SubClass();
        SuperClass sc=new SubClass();
        IAction ia=new SubClass();
        IAction1 ia1=new SubClass();
        IAction.methodD();
//        SubClass.methodD();
//        接口中的默认可以被继承
        subClass.methodE();
        sc.show();
        subClass.method1A();
        System.out.println( subClass.NUM);
        System.out.println( SubClass.NUM);
        System.out.println( IAction.NUM);
    }
}
